package com.bawei.library_base.mvvm;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

/**
 * @author : zhiyu
 * @date :
 * @content :
 */
public abstract class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        initEnv();
        initData();
    }

    protected abstract void initEnv();
    protected abstract void initData();
    protected abstract int bindLayout();
}
